<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
<head>
  <title>Struts2标签库测试</title>
</head>
<body>
<s:property value="field1" /><br>
<s:property value="field2" />
<s:if test="field2>0">大于0</s:if>
<s:elseif test="field2<0">小于0</s:elseif>
<s:else>等于0</s:else><br>
<s:property value="field3" /><br>
  <s:iterator value="field4" status="sta">
    <s:property value="field4[#sta.index]" />
    <s:if test="#sta.count!=field4.length">
      <s:property value="','" />
    </s:if>
  </s:iterator><br>
<s:property value="field5" /><br>
<s:property value="field6" /><br>
<s:set var="tmp1" value="1" scope="request" />
<s:property value="#request.tmp1" default="null" /><br>
<s:set var="tmp2" value="'val'" scope="session" />
<s:property value="#session.tmp2" default="null" />
</body>
</html>
